package com.legal.aid.app.domain.dto;

import java.io.Serializable;

/**
 * 收藏请求参数 DTO
 */
public class CollectDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 目标ID (新闻ID、律师ID、案例ID等) */
    private Long targetId;

    /** 类型: 0-新闻, 1-律师, 2-案例 */
    private String targetType;

    /** 创建人 */
    private String createdBy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Override
    public String toString() {
        return "CollectDto{" +
                "id=" + id +
                ", userId=" + userId +
                ", targetId=" + targetId +
                ", targetType='" + targetType + "'" +
                ", createdBy='" + createdBy + "'" +
                "}";
    }
}
